<template>
  <div class="box">{{ 1 + 1 }}</div>
  <div>
    <button @click="add">添加</button>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        a: 1,
        b: 2
      }
    },
    methods: {
      add() {
        console.log(`helloworld`)
      }
    },
    mounted() {}
  }
</script>
<style type="text/css">
  .box {
    width: 100px;
    height: 100px;
    border: 1px solid #000;
  }
</style>
